package singleton;

// 静态内部类实现单例
public class InnerClassSingleton {
    private static class InnerClassHolder {
        private static InnerClassSingleton INSTANCE = new InnerClassSingleton();
    }

    public static InnerClassSingleton getInstance() {
        return InnerClassHolder.INSTANCE;
    }
}
